//
//  dayDetailTableViewCell.h
//  SmartRoadShow
//
//  Created by  ibokan on 10-9-20.
//  Copyright 2010 simonwang142232@gmail.com. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ImageDownloader.h"

@protocol dayDetailTableViewCellDelegate;

@interface dayDetailTableViewCell : UITableViewCell <ImageReceiver>
{
    UIImageView *imageView1;
	//信息类别
	UILabel *sortLabel;
	//信息简介
	UILabel *infoLabel;
	//信息时间
	UILabel *timeLabel;
	
	//添加关注按钮
	UIButton *attentionButton;
	BOOL buttonState;
	
	//详细信息界面按钮
	UIButton *detailButton;
	NSString *endTime;
	
	NSString* pushNewsId;
	NSString *pushCity;
	NSString *pushTime;
	NSString *pushTitle;
	//标识添加或取消关注
	BOOL ifConcern;
	
	NSIndexPath *indexPath;
	
	id<dayDetailTableViewCellDelegate>delegate;

	//标识是艺术地图还是都市巡展信息, 都市巡展为1, 艺术地图为2.
	int typeFlag;
}
@property (nonatomic, retain) UIImageView *imageView1;
@property (nonatomic, retain) UILabel *sortLabel;
@property (nonatomic, retain) UILabel *infoLabel;
@property (nonatomic, retain) UILabel *timeLabel;
@property (nonatomic, retain) UIButton *attentionButton;
@property (nonatomic, retain) UIButton *detailButton;
@property (nonatomic, retain) NSIndexPath *indexPath;
@property (nonatomic, assign) id<dayDetailTableViewCellDelegate>delegate;
@property int typeFlag;


- (void)setCellStyle:(NSInteger)type;
- (void)setImageWithURL:(NSString *)url;
- (void)setPushById:(NSString*)newsId City:(NSString *)city Time:(NSString *)time Title:(NSString *)title;
- (void)setTimeLabelText:(NSString *)begin End:(NSString *)end;

@end

@protocol dayDetailTableViewCellDelegate
@optional
-(void)seeDetailInfoForIndexPath:(NSIndexPath *)indexPath;
@end

#define attentionButtonFrame CGRectMake(268, 15, 20, 20)
